package com.micro.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class DeptController_Consumer {
/**
 * test: 我是配置中心配置信息
 server:
 port: 8190
 my:
 name: xyz
 */
    @Value("${server.port}")
    private String serverPort;
    @Value("${my.name}")
    private String myName;
    @Value("${test}")
    private String test;

    @RequestMapping("/prop")
    public String getProp(){
        return serverPort+" -> " + myName +" -> "+ test;
    }

}



